<% form_for :email, @email, :url => { :action => "send_mail" } do |f| %>
<table>
    <tr>
        <td><label for="email_name">Name:</label></td>
        <td><%= f.text_field "name", :size => 30 %></td>
    </tr>
    <tr>
        <td><label for="email_address">Email Address:</label></td>
        <td><%= f.text_field "address", :size => 30 %></td>
    </tr>
    <tr>
        <td><label for="email_subject">Subject:</label></td>
        <td><%= f.text_field "subject", :size => 30 %></td>
    </tr>
    <tr>
        <td><label for="email_body">Body:</label></td>
        <td><%= f.text_area "body", :rows => 8, :cols => 30 %></td>
    </tr>
</table>

<%= submit_tag 'Create' %>
 <% end %>